package com.lynn.salary.util;

import java.util.ArrayList;
import java.util.List;

public class PageTable {

	private String idName;
	private String target;
	private boolean useBatch = true;
	private List<PageColumn> columns;
	private List<Operator> lineOperator;

	public void addLineOperator(Operator o) {
		if(lineOperator == null) lineOperator = new ArrayList<Operator>();
		lineOperator.add(o);
	}
	
	public String getIdName() {
		return idName;
	}

	public void setIdName(String idName) {
		this.idName = idName;
	}

	public List<PageColumn> getColumns() {
		return columns;
	}

	public void setColumns(List<PageColumn> columns) {
		this.columns = columns;
	}

	public void addColumn(PageColumn c) {
		if (columns == null)
			columns = new ArrayList<PageColumn>();
		columns.add(c);
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public boolean isUseBatch() {
		return useBatch;
	}

	public void setUseBatch(boolean useBatch) {
		this.useBatch = useBatch;
	}

	public List<Operator> getLineOperator() {
		return lineOperator;
	}

	public void setLineOperator(List<Operator> lineOperator) {
		this.lineOperator = lineOperator;
	}
}
